# cmake_minimum_required(VERSION 3.10)
# project(CMake-Learning)

# set(CMAKE_CXX_STANDARD 11)
# set(src_path main.cc test.cc)

# set(outPutPath /home/ubuntu/debugging-learning/build)
# # set(EXECUTABLE_OUTPUT_PATH ${outPutPath}/mypath)


# add_executable(test ${src_path})

# cmake_minimum_required(VERSION 3.10)
# project(CMake_test)
# set(CMAKE_CXX_STANDARD 11)

# file(GLOB SRC ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp ${CMAKE_CURRENT_SOURCE_DIR}/*.cc)
# add_executable(test ${SRC})


# 动静态库的制作
cmake_minimum_required(VERSION 3.10)
project(CMake_test)
set(CMAKE_CXX_STANDARD 11)

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
file(GLOB SRC ${CMAKE_CURRENT_SOURCE_DIR}/source/*.cc)
set(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/mylib)
add_library(mylib STATIC ${SRC})
# add_library(mylib SHARED ${SRC})